﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ShangCheng/SCjingxuan.master" AutoEventWireup="true" CodeBehind="SCwegm1.aspx.cs" Inherits="Player.ShangCheng.SCwegm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="SCtxt" runat="server">
    <style>
        #bos {
            width:100%;
        }
        #top {
            border-top-left-radius:5px;
            border-top-right-radius:5px;
            overflow:hidden;
            height:100px;
            background-size:100% 100%;
        }
          #top_sp2 {
                display: block;
                float: left;
                height: 80px;
                width:74%;
                padding:10px;
            }
        #top_sp1 {
                display: block;
                float: left;
                height: 100px;
                overflow:hidden;
        }
        .price {
            padding:3px;
            background-color:#f6c653;
            color:#fff;
            margin-top:10px;
            font-size:10px;
            border-radius:2px;
        }
        @keyframes imgss {
            from {
                transform: scale(1.1);
            }

            to {
                transform: scale(1.2);
            }
        }
        #bos img {
            cursor: pointer;
            margin-right: -1px;
        }
       #bos img:hover{
        animation: imgss 600ms linear alternate infinite;
         }
        #top,#cen,#btm {
            width:100%;
            box-shadow:0 0 2px #ff6969;
        }
        #cen {
            height:30px;
            background-color:#f0f5fc;
            line-height:30px;
            border-bottom-left-radius:5px;
            border-bottom-right-radius:5px;
        }
            #cen h6 {
                margin-left:20px;
            }
        #btm {
            background-color:#fff;
            width:684px;
            overflow:hidden;
            margin:20px auto;
            border-radius:5px;
    
        }
        #bos_btm-left {
            width:480px;
        }
            #bos_btm-left video {
                outline:none;
            }
        #bos_btm-right {
            width:204px;
            background-color:#ebfafe;
        }
        #bos_btm-right-divlast {
            margin-top:22px;
            text-align:center;
        }
        #bos_btm-right,#bos_btm-left {
            float:left;
            height:250px;
        }
            #bos_btm-right table {
                margin:10px;
                font-size:9px;
            }
                #bos_btm-right table td {
                    background-color:#e8e8e8;
                    border-radius:3px;
                    text-align:center;
                    color:#808080;
                    height:30px;
                }
        .tdleft {
            width:60px;
        }
        .tdright {
            width:120px;
        }
        @keyframes animate
        {
            0%{
                background-position: 0%;
            }
            100%{
                background-position: 400%;
            }
        }
        .bos_btm-right-GM {
            margin-bottom: 10px;
            margin-left: 47px;
            font-size:9px;
            transform: translate(-50%,-50%);
            width:100px;
            height:30px;
            text-align:center;
            line-height: 30px;
            color:white;
            text-decoration: none;
            text-transform: uppercase;
            font-family: sans-serif;
            box-sizing: border-box;
            background:linear-gradient(90deg,#03a9f4,#f441a5,#ffeb3b,#03a9f4);
            background-size: 400%;
            border-radius: 30px;
            outline:none;
            border:none;
            cursor: pointer;
            animation: animate 8s linear infinite;
        }
            .bos_btm-right-GM:hover {
               font-size:13px;
               box-shadow:0 0 1px #000;
            }
        .divlast_imgbtndz {
            cursor:pointer;
            width:28px;
            outline:none;
            height:28px;
            margin-bottom:10px;
            margin-left:-50px;
        }

        #bos #we_zhifu {
    padding: 10px;
    width: 280px;
    height: 260px;
    box-shadow:0 0 2px #000;
    background-color:#fff;
    position:fixed;
    margin-top:-360px;
    margin-left:-350px;
    z-index:100;
    border-radius:5px;
}
        #we_zhifu hr {
            border:none;
            background-color:#b5b5b5;
            height:1px;
            width:99%;
        }
        #we_zhifu .pricetxt {
            color:#f6c653;
        }
        #zhifu-div1 {
            padding-bottom:10px;
        }
        #zhifu-div1 span{
            font-weight:bolder;
            margin-left:100px;
            font-size:16px;
        }
            #bos #we_zhifu .we_guanbi {
                width:20px;
                height:20px;
                outline:none;
                margin-left:90px;
                margin-bottom:-4px;
            }
        #zhifu-div2 img {
            width:80px;
            height:50px;
        }
        #zhifu-div2 span {
            margin-left:20px;
            margin-bottom:20px;
        }
        .zhifu_title {
            color:#504f4f;
            font-weight:bold;
            margin-left:0px;
            margin-bottom:5px;
            font-size:15px;
        }
        #zhifu-div2,#zhifu-div3 {
            font-size:12px;
            padding-left:10px;
            width: 100%;
            padding-top: 5px;
            padding-bottom: 10px;
            height: 75px;
        }
        .zhifu_txt-img,.zhifu_txt-txt {
            float:left;
            overflow:hidden;
        }
        #zhifu-div3 input[type=checkbox] {
            margin-left:200px
        }
        #zhifu-div3last {
            margin-top:15px;
        }
        #zhifu-div4 {
            padding-left:10px;
            width: 100%;
            padding-top: 10px;
            font-size:14px;
        }
            #zhifu-div4 input[type=submit] {
                cursor:pointer;
                margin-left:90px;
                outline: none;
                font-weight: bolder;
                border: none;
                border-radius: 5px;
                background-color: #f6c653;
                width: 60px;
                height: 20px;
                text-align: center;
            }
                #zhifu-div4 input[type=submit]:hover {
                    background-color: #fae98e;
                }
            #zhifu-div4 .zfts {
                margin-left:175px;
            }
    </style>
    <div id="bos">
      <div id="top" style="background-image:url('../Player图片/背景图/商城背景图/Webj5.png');">
          <span id="top_sp1">
              <asp:Image ID="Image1" ImageUrl="" Width="150px" Height="100px" runat="server" />
          </span>
          <span id="top_sp2">
              <asp:Label ID="lblname" Text="text" runat="server" ForeColor="White" />
              <br />
              <asp:Label ID="lbldesc" runat="server" ForeColor="White" Font-Size="12px" Text="Label"></asp:Label>
              <br />
              <asp:Label ID="lblprice" CssClass="price" runat="server" Text="Label"></asp:Label>
          </span>
       </div>
       <div id="cen">
           <h6>简介视频</h6>
       </div>
        <div id="btm">
            <div id="bos_btm-left">
                <asp:Repeater ID="rpttv" runat="server">
                    <ItemTemplate>
                        <video src='<%#"../视频/游戏视频/"+Eval("Gm_Lv")%>' width="480px" loop="loop" autoplay="autoplay" height="270" controls="controls">
                        </video>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            <div id="bos_btm-right">
                <table>
                    <tr>
                        <td class="tdleft">名称</td>
                        <td class="tdright"><asp:Label ID="lblname2" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tdleft">类型</td>
                        <td class="tdright"><asp:Label ID="lblgmtype" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tdleft">价格</td>
                        <td class="tdright"><asp:Label ID="lblprice2" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tdleft">点赞量</td>
                        <td class="tdright"><asp:Label ID="lblupcount" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="tdleft">发行平台</td>
                        <td class="tdright">Player</td>
                    </tr>
                </table>
                <div id="bos_btm-right-divlast">
                    <asp:Button ID="btn_GouMai" CssClass="bos_btm-right-GM" runat="server" Text="Button" OnClick="btn_GouMai_Click" />
                    <asp:ImageButton ID="imgbtn_dianzan" ImageUrl="~/Player图片/图标/游戏页面1/dianzan1.png" CssClass="divlast_imgbtndz" OnClick="imgbtn_dianzan_Click" runat="server" />
                    <%--进度条--%>
                    <%--<script src="../jquery-3.4.1.js"></script>
                    <style type="text/css">
        .bt {
            cursor: pointer
        }

        .loadBox {
            width: 200px;
            padding: 12px;
            margin-top: -38px;
            font-size: 9px;
        }

        .loadText {
            width: 70px;
            height: 20px;
            display: inline-block
        }
        .loadBar {
            display: block;
            width: 200px;
            height: 4px;
            border-radius: 1px;
            display: inline-block
        }
    </style>
                    <input type="button" onclick="load()" value="Click Me" class="bt"><input/>
                    <div class="loadBox">
                        <span class="loadText">加载中...</span>
                        <span class="loadBar"></span>
                    </div>
                    <script>
                        $(function () { })
                        function load() {
                            var num = 0;
                            var loadBtn = $(".bt")//获取属性
                            var loadText = $(".loadText")
                            var loadBar = $(".loadBar")
                            var progressInterval = setInterval(function () {
                                if (num < 1000) {
                                    num++
                                    var Progresswidth = (num / 5).toFixed() + "px";//这里设置进度条为100px
                                    loadBtn.attr('disabled', true).css({//点击后button禁止点击
                                        'opacity': '0.5',
                                        'cursor': 'no-drop',
                                    });
                                    loadText.text(parseInt(num / 10) + "%");
                                    loadBar.css({
                                        'width': Progresswidth,
                                        'background': "linear-gradient(90deg,#ffd33d 10%,#ea4aaa 30%,#b34bff 51%,#ffb33d 68%, #ea4aaa 85%,#b34bff)"
                                    });
                                } else {
                                    loadBtn.attr('disabled', false).css({
                                        'opacity': '1',
                                        'cursor': 'pointer',
                                    });
                                    loadText.text("下载成功")
                                    clearInterval(progressInterval)//执行后清除Interval
                                }
                            }, 1)//这里我们设置成1毫秒执行一次，要执行1000次
                        }
    </script>--%>
                </div>

                <%--支付信息匡--%>
                <asp:Panel ID="pl_goumai" runat="server" Visible="False">
                    <div id="we_zhifu">
                        <div id="zhifu-div1">
                            <span>购买选择</span><asp:ImageButton ID="imgbtn_guanbi" OnClick="imgbtn_guanbi_Click" CssClass="we_guanbi" ImageUrl="~/Player图片/图标/游戏页面1/guanbi.png" runat="server" />
                        </div>
                        <hr />
                        <div id="zhifu-div2">
                            <div class="zhifu_title">信息</div>
                            <div class="zhifu_txt-img">
                                <asp:Image ID="img_zfxx1" runat="server" />
                            </div>
                            <div class="zhifu_txt-txt">
                                <asp:Label ID="lbl_zfxx2" runat="server" Text="Label"></asp:Label><br /><br />
                                <asp:Label ID="lbl_zfxx3" CssClass="pricetxt" runat="server" Text="Label"></asp:Label>￥
                            </div>
                        </div>
                        <hr />
                        <div id="zhifu-div3">
                            <div class="zhifu_title">优惠</div>
                            <div>
                                当前账号金币数量：<asp:Label ID="lbl_zhifugoid" CssClass="goid" runat="server" Text="Label" ForeColor="#3333CC"></asp:Label>个,
                                可抵扣<asp:Label ID="lbl_zhifudkprice" CssClass="pricetxt" runat="server" Text="Label"></asp:Label>.
                            </div>
                            <div id="zhifu-div3last"><input id="chk_zhifupd" type="checkbox"/>使用金币</div>
                        </div>
                        <hr />
                        <div id="zhifu-div4">
                            需支付:<asp:Label ID="lbl_ZFlastprice" CssClass="pricetxt" runat="server" Text="Label"></asp:Label>￥
                            <asp:Button ID="btn_GM2" OnClick="btn_GM2_Click" runat="server" Text="支付" /><br />
                            <asp:Label ID="ZFTS" runat="server" Text="" CssClass="zfts" Font-Size="8px" ForeColor="#FF3300"></asp:Label>
                        </div>
                    </div>
                </asp:Panel>

            </div>
        </div>
     </div>
    <script src="../jquery-3.4.1.js"></script>
    <script>
        $(function () {
            $(".divlast_imgbtndz").mousemove(function () {
                $(this).attr("src", "../Player图片/图标/游戏页面1/dianzan2.png");
            });
            $(".divlast_imgbtndz").mouseout(function () {
                $(this).attr("src", "../Player图片/图标/游戏页面1/dianzan1.png");
            });
            //金币使用
            $("input[type='checkbox']").change(function () {
                if ($("input[type='checkbox']").is(':checked')) {
                    //抵扣后的价
                    var pc = $(".pricetxt:first").text() - $(".goid").text() / 10;
                    if (pc<=0) {
                        //显示需支付
                        $(".pricetxt:last").text("0");
                    }
                    else {
                        //显示需支付
                        $(".pricetxt:last").text(pc);
                    }
                } else {
                    var pc2 = $(".pricetxt:first").text().toString();
                    //显示需支付
                    $(".pricetxt:last").text(pc2);
                }
            });
        });
    </script>
</asp:Content>